
<template>
  <!-- 声明式导航 -->
  <p>
    <router-link to="/home">首页</router-link>
    <router-link to="/category">分类</router-link>
    <router-link to="/cart">购物车</router-link>
    <router-link to="/mine">我的</router-link>
    <router-link to="/detail">详情</router-link>
  </p>
  <RouterView />
</template>
<script setup lang="ts">
// @ts-ignore
import { RouterLink, RouterView } from 'vue-router';
</script>

<style scoped></style>
